import  os
BASE_DIR=os.path.abspath(os.path.dirname(__file__))
class Config(object):
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:855120@localhost:3306/blogpy?charset=utf8'
    # sqlite
    # SQLALCHEMY_DATABASE_URI='sqlite:///'+os.path.join(BASE_DIR,'flaskblog.db')
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    #设置密匙要没有规律，别被人轻易猜到哦
    SECRET_KEY = 'a9087FFJFF9nnvc2@#$%FSD'